<?php
	require 'lang_detect.class.php';
	$text = 'It is text in English';

	try {
		print_r(lang_detect::detect($text, "google-api-key-from-http://code.google.com/apis/console"));
	} catch (LangDetectException $e) {
		echo $e->getMessage();
	}
?>
